﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using App.Domain.Contracts;
using Microsoft.Practices.ServiceLocation;
using App.Web.Models;

namespace App.Web.Controllers {
    public class PositionController : AuthorizedController {
        public PositionController(IUserServices userServices, IServiceLocator serviceLocator)
            : base(userServices, serviceLocator) {
        }
        [Authorize]
        public ActionResult Index() {
            return View();
        }

        public ActionResult Details(Guid id) {
            return View();
        }
        [Authorize]
        public ActionResult List() {

            ViewBag.userid = this.CurrentUserId;

            return View(ViewBag.userid);
        }

        public ActionResult Add() {
            return View();
        }

        [HttpPost]
        public ActionResult Add(FormCollection formValues, PositionFormModel positionForm) {
            return View();
        }

        // GET
        //[Authorize]
        public ActionResult Edit(int id) {
            return View();
        }

        // POST
        [HttpPost]
        public ActionResult Edit(FormCollection formValues, PositionFormModel positionForm) {
            return View();
        }

        [HttpPost]
        public ActionResult Delete(int id) {
            return View();
        }
    }
}
